package com.example.answer_staff;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;

public class AnswerConfirmActivity  extends Activity{

	private ImageView question_answer_confirm;
	private ImageView back_answer_confirm;
	private Button back_to_newsroom;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.answer_confirm);
		setupView();
		setListeners();
	}

	private void setListeners() {
		question_answer_confirm.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				startActivity(new Intent(AnswerConfirmActivity.this,AnswerHelpActivity.class));
			}
		});	
		back_answer_confirm.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {  
				finish();
			}
		});
		back_to_newsroom.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				startActivity(new Intent(AnswerConfirmActivity.this,NewsRoomActivity.class));
				finish();	
			}
		});



	}

	private void setupView() {
		back_to_newsroom=(Button)findViewById(R.id.back_to_newsroom);
		question_answer_confirm=(ImageView)findViewById(R.id.question_answer_confirm);
		back_answer_confirm=(ImageView)findViewById(R.id.back_answer_confirm);

	}
}
